package online.yysh.charging.livedata;

import androidx.lifecycle.MutableLiveData;

import online.yysh.charging.wxapi.WXLogin;

/**
 * 微信登陆管理
 */
public class WXLoginManager {
    private static WXLoginManager instance;

    public static WXLoginManager getInstance() {
        if (instance == null) {
            synchronized (WXLoginManager.class) {
                if (instance == null) {
                    instance = new WXLoginManager();
                }
            }
        }
        return instance;
    }

    private MutableLiveData<WXLogin> liveData;

    private WXLoginManager() {
        liveData = new MutableLiveData<>();
    }

    public MutableLiveData<WXLogin> getLiveData(){
        return liveData;
    }
}
